package cn.jjxx.modules.sso.service;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Service;

import cn.jjxx.core.model.AjaxJson;
import cn.jjxx.modules.sso.entity.TokenEntity;
import cn.jjxx.modules.sys.entity.User;

@Service
public interface ISSOServerService {

	void checkLogin(TokenEntity tokenEntity, HttpServletRequest request, HttpServletResponse response) throws IOException;
	
	AjaxJson tokenCheck(TokenEntity token);
	
	void ssoLogin(User user, HttpServletRequest request, HttpServletResponse response) throws IOException;
	
	boolean ssoLogout();
}
